<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>商之联运营商后台</title>
  <meta name="description" content="这是一个form页面">
  <meta name="keywords" content="form">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="{:C('SUPPLIER_ADMIN_IMAGE')}favicon.png"> <link rel="apple-touch-icon-precomposed" href="{:C('SUPPLIER_ADMIN_IMAGE')}app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="{:C('GONG_HOME_CSS')}amazeui.min.css"/>
  <link rel="stylesheet" href="{:C('GONG_HOME_CSS')}admin.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->
<!-- header start-->

<include file="Public:header"/>

<!-- header end-->

<div class="am-cf admin-main">
 <!-- sidebar start -->
   <include file="Public:menu"/>
  <!-- sidebar end -->
  
  <!-- content start -->
  <div class="admin-content">
  <!-- 基本信息 start-->
  <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">订单管理</strong> / <small>订单详情</small></div>
    </div>
    <!--基本信息start -->
    <div class="am-g">
      <section class="am-panel am-panel-default">
        <header class="am-panel-hd">
          <h3 class="am-panel-title">基本信息</h3>
        </header>
        <div class="am-panel-bd">
                  <table class="am-table am-table-bd am-table-striped admin-content-table">
                    <tbody>
                    <foreach name="re" item="res">
                    <tr> <td align="right">收货人：{$res['consignee']}</td><td></td>
                    <td align="right">联系方式:{$res['mobile']}</td><td> </td>
                    </tr>
                    <tr>
                    <td align="right">收货地址:{$res[province]}{$res['city']}{$res['district']}{$res['address']}</td><td></td>
                    </tr>
                    <tr>
                    <td align="right">供应商信息:{$res['name']}</td> <td></td>
                    <td align="right">地址:{$res['address']}</td> <td></td>
                    </tr>
                    <tr>
                      <td align="right">电话:{$res['mobile']}</td><td></td>
                      <td align="right">座机:{$res['telephone']}</td><td>                      </td>
                    </tr>
                    </foreach>
                    <tr>

                      <td align="right" class="shipping_name" value="{$res['delivery']}">物流公司:
                        <foreach name='express_company' item='express'>
                          <if condition=" $express['kuaidi']  eq $res['delivery'] "> {$express['company']} </if>
                        </foreach>
                        </td>

                        <td></td>
                      <td align="right" class="expressno"  value="{$res['logistic_num']}">运单号:
                      {$res['logistic_num']}

                      <if condition="$res['logistic_num'] neq '' ">
                        <a href="javascript:void(0)" id="expressline"  style="color: #0e90d2;">&nbsp; 点击跟踪物流 </a>
                      </if>
                      </td>

                      <td></td>
                    </tr>
                    </tbody>
                  </table>
         
        </div>
    </section>
    </div>
    <!--基本信息end -->
    <!--s商品start -->
     <div class="am-g">
      <section class="am-panel am-panel-default">
        <header class="am-panel-hd">
          <h3 class="am-panel-title">商品信息</h3>
        </header>
        <div class="am-panel-bd">
        <foreach name="re" item="res">
                  <table class="am-table am-table-bd am-table-striped admin-content-table">
                    <thead>
                      <td>订单编号</td>
                      <td>商品</td>
                      <td>属性</td>
                      <td>单价</td>
                       <td>毛利额</td>
                      <td>毛利率(%)</td>
                      <td>数量</td>
                      <td>商品总价</td>
                    </thead>
                    <tbody>
                    <td>{$res['order_sn']}</td>
                    <td>{$res['itemname']}</td>
                    <td>{$res['specvale']}</td>
                    <td>{$res['price']}</td>
                   <td>
                    <?php if(!$profit){
                     echo "暂无" ;
                      }else{
                        echo $profit;
                        };?></td>
                    <td> <?php if(!$rate){
                     echo "暂无" ;
                      }else{
                        echo $rate;
                        };?></td>
                    <td>{$res['number']}</td>
                    <td>{$res['order_amount']}</td>
                    </tbody>
                  </table> 
                  </foreach>     
        </div>
    </section>
    </div>
    <!--商品信息end-->
     <!-- 订单状态-->
     <div class="am-g">
      <div class="am-g">
         <div class="am-u-sm-12">
          <table class="am-table am-table-bordered am-table-striped am-table-compact orderlog">
                <thead>
                  <tr>
                      <th>操作者</th>
                      <th>操作时间</th>
                      <th>订单状态</th>
                      <th>付款状态</th>
                      <th>发货状态</th>
                      <th>备注</th>
                  </tr>
            </thead>
            <tbody></tbody>
                  
          </table>
         </div>
      </div>
        <if condition="$res['logistic_num'] eq '' ">
    请选择物流商：<select name="delivery">
                      <option>请选择</option>
                      <foreach name="express_company" item='express'>
                        <option value="{$express['kuaidi']}">{$express['company']}</option>
                      </foreach>
                  </select>
    请填写物流单号：<input type="text" name="logistic_num">
    <button type="button" class="am-btn  " style="margin-right:10px"  data-am-modal="{target: '#my-alert'}"  id="delivery">确认发货</button>

    
    </if>
    <input type="hidden" value={$res['orderid']} class="orderid" name="orderid" />
    <input type="hidden" value={$order['order_amount']} class="amount" />
    </div>
    <!--物流查询结果 -->
    <h5><span class='result'></span></h5>　
　　<div class="blank"></div>　
　　<table width="100%" border="0" cellpadding="5"cellspacing="1" bgcolor="#dddddd">　
　　<tr> <td bgcolor="#ffffff"><div id="retData"></div> </td> </tr>　
　　　
　　</table>　

    <!-- 物流查询结果-->

    </div>

  <!-- content end -->

  <!--footer start-->
  <footer>
  <hr>
  <p class="am-padding-left">© 2014 商之联.</p>
</footer>
<!-- footer end -->
<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="{:C('GONG_HOME_JS')}polyfill/rem.min.js"></script>
<script src="{:C('GONG_HOME_JS')}polyfill/respond.min.js"></script>
<script src="{:C('GONG_HOME_JS')}amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="{:C('GONG_HOME_JS')}jquery.min.js"></script>
 <script src="{:C('GONG_HOME_JS')}amazeui.min.js"></script>  <script src="{:C('GONG_HOME_JS')}amazeui.min.js"></script>
 <!--<![endif]-->  <!--<![endif]-->
<script src="{:C('GONG_HOME_JS')}app.js"></script>  
<script src="{:C('GONG_HOME_JS')}supper.js"></script>
</body>
</html>